package com.heima.job3;

import java.util.Random;
import java.util.Scanner;

public class Test {
    public static void main(String[] args) {
        RandomNumHandler randomNumHandler = ()->{
            Random r = new Random();
            return r.nextInt(12);

        };
        System.out.println(randomNumHandler.getNumber());
    }

    public static int useRandomNumHandler(RandomNumHandler rand) {
        return rand.getNumber();
    }
}